package com.jintu.portal.pojo.entity;

import com.jintu.portal.pojo.bean.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liyou on 2017/9/21.
 */
@Entity
@Table(name = "t_post")
public class TPost extends BaseEntity {
    private Long id;
    private String name;
    private Integer type;
    private Long departmentTypeId;
    private Date createTime;
    private Long creator;
    private Date updateTime;
    private Long updater;

    @Column(name = "logic_delete")
    private Integer logicDelete;

    @Column(name = "add_type")
    private Integer addType;

    @Id
    @GeneratedValue
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(name = "department_type_id")
    public Long getDepartmentTypeId() {
        return departmentTypeId;
    }

    public void setDepartmentTypeId(Long departmentTypeId) {
        this.departmentTypeId = departmentTypeId;
    }

    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "creator")
    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "updater")
    public Long getUpdater() {
        return updater;
    }

    public void setUpdater(Long updater) {
        this.updater = updater;
    }

    public Integer getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(Integer logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Integer getAddType() {
        return addType;
    }

    public void setAddType(Integer addType) {
        this.addType = addType;
    }
}
